package com.ywt.cda.action;

import com.ywt.cda.service.PublicAnalysisService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * Created by Je on 2016/7/21.
 */
@Controller
@RequestMapping("public")
public class PublicAction {
    @Resource
    private PublicAnalysisService publicAnalysisService;

    @RequestMapping(value = "getExportSummary", produces = "text/html;charset=UTF-8")
    @ResponseBody
    public String getExportSummary() {
        return publicAnalysisService.getExportSummary();
    }

    @RequestMapping(value = "getExportDetail", produces = "text/html;charset=UTF-8")
    @ResponseBody
    public String getExportDetail() {
        return publicAnalysisService.getExportDetail();
    }
}
